﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using GSLMS.Entity;
namespace GSLMS.Services.Interface
{
	/// <summary>
	/// 接口说明:TB_SYS_PRODUCT接口
	/// </summary>
	[ServiceContract(Name = "ISYS_PRODUCT", Namespace = "http://www.gslms.com/")]
	public interface ISYS_PRODUCT : IBase<TB_SYS_PRODUCT>
	{

        /// <summary>
        /// 新增产品信息，-1产品编号已经存在，-2产品名称已经存在，1成功，0失败
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        [OperationContract]
        int AddProduct(GSLMS.Entity.TB_SYS_PRODUCT model);

        /// <summary>
        /// 编辑产品信息，-1产品编号已经存在，-2产品名称已经存在，1成功，0失败
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        [OperationContract]
        int UpdateProduct(GSLMS.Entity.TB_SYS_PRODUCT model);

        /// <summary>
        /// 根据系统提取产品信息
        /// </summary>
        /// <param name="systemID">系统类别</param>
        /// <param name="status">状态，-1为所有，1有效，0无效</param>
        /// <returns></returns>
        [OperationContract]
        List<GSLMS.Entity.TB_SYS_PRODUCT> GetBySysetmID(GSLMS.Entity.Enum.SystemEnum.SystemID systemID, int status);
	}
}
